import request from '@/utils/request'
import {HOST} from '@/constants'
import qs from 'qs'

export function getMetaClassList(data) {
  return request({
    url: `${HOST}/meta-class/list`,
    method: 'get',
    params: data
  })
}

export function updateMetaClass(data) {
  return request({
    url: `${HOST}/meta-class/update`,
    method: 'post',
    data: qs.stringify(data)
  })
}

export function deleteMetaClass(data) {
  return request({
    url: `${HOST}/meta-class/delete`,
    method: 'post',
    data: qs.stringify(data)
  })
}

export function addMetaClass(data) {
  return request({
    url: `${HOST}/meta-class/add`,
    method: 'post',
    data: qs.stringify(data)
  })
}



